package IO;

import java.io.FileInputStream;
import java.io.FileOutputStream;

/*将所有的小写字母写入到文件fos.txt中*/
public class Test {
    public static void main(String[] args) throws Exception{
     /*   FileInputStream fileInputStream = new FileInputStream("abc1s.txt");*/
        FileOutputStream fileOutputStream = new FileOutputStream("abc1.txt");
       /* int d;
        while ((d=fileInputStream.read())!=-1){
            if ((char) d>=97){
                fileOutputStream.write(d);
            }
        }*/
        for (int i = 0;i<26;i++){
            fileOutputStream.write(97+i);//将整数（97+i）的二进制“低八位”写入文件中
        }


        System.out.println("wc");
       /* fileInputStream.close();*/
        fileOutputStream.close();
    }
}
